package com.example.datedemo;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

import java.text.SimpleDateFormat;
import java.util.Date;

@SpringBootApplication
@EnableWebMvc
@MapperScan("com.example.datedemo.mapper")
public class DatedemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(DatedemoApplication.class, args);
        System.out.println("---successful---");
        Date tempDate = new Date();
        SimpleDateFormat lowW = new SimpleDateFormat("w");
        SimpleDateFormat upW = new SimpleDateFormat("W");
        System.out.println("upW.format(tempDate) = " + upW.format(tempDate));
        System.out.println("lowW.format(tempDate) = " + lowW.format(tempDate));

    }

}
